package com.ruoyi.bl.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类对象 bl_goods_category
 * 
 * @author ruoyi
 * @date 2024-11-01
 */
public class BlGoodsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类id */
    private Long categoryId;

    /** 部门ID */
    private Long deptId;

    /** 商品分类名称 */
    @Excel(name = "商品分类名称")
    private String name;

    /** 顺序排序 */
    @Excel(name = "顺序排序")
    private Long sortOrder;

    /** 是否显示 */
    @Excel(name = "是否显示")
    private Integer isShow;

    /** 是否推荐为热门分类 */
    @Excel(name = "是否推荐为热门分类")
    private Integer isHot;

    /** 分类系数 */
    @Excel(name = "分类系数")
    private BigDecimal ratio;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }
    public void setRatio(BigDecimal ratio) 
    {
        this.ratio = ratio;
    }

    public BigDecimal getRatio() 
    {
        return ratio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("deptId", getDeptId())
            .append("name", getName())
            .append("sortOrder", getSortOrder())
            .append("isShow", getIsShow())
            .append("isHot", getIsHot())
            .append("ratio", getRatio())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
